package com.koala.learn.beanlearn.entity;

/**
 * @author yantingrui
 * @date 2021/12/30   22:27
 */


public class Student {

    private final String name;

    private final Integer age;

    public Student(String name, Integer age) {
        System.out.println("-----Student------all args-----");
        this.name = name;
        this.age = age;
    }

    public String getName() {
        System.out.println("-----Student------getName-----");
        return name;
    }

    public Integer getAge() {
        System.out.println("-----Student------getAge-----");
        return age;
    }
}
